<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>添加细胞检测</title>
    <link href="__TMPL__/public/assets/themes/{:cmf_get_admin_style()}/bootstrap.min.css" rel="stylesheet">
    <link href="__TMPL__/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
    <link href="__STATIC__/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <style type="text/css">
        *{margin: 0;padding: 0;font-size: 16px;}
        table{width: 100%;border-spacing: 0;}
        th,td{font-weight: normal;border: 0;text-align: center;line-height: 40px;border-right: 1px solid #000000;border-bottom: 1px solid #000000;}
        th{width: 12%;}
        td{width: 13%;padding: 5px;}
        table tr:last-child th,table tr:last-child td{border-bottom: 0;}
        tr td:last-child{border-right: 0;}
        table input[type="text"]{width: 100%;height: 100%;border: 0;outline: 0;display: block;text-align: center;}
        table input[type="number"]{width: 100px;text-align: center;outline: 0;-webkit-appearance:button;}
        textarea{width: 100%;height: 100%;border: 0;outline: 0;display: block;resize: none;}
        .apply_image{width: 50px;height: 50px;display: block;float: left;}
        .layui-upload-list input{display: none;}
        #submit{width: 60px;height: 30px;line-height: 30px;color: #ffffff;background: #ff5555;border-radius: 5px;border: 0;margin: 20px auto;outline: 0;display: block;cursor: pointer;}
    </style>
</head>
<body>
<div style="padding: 20px 0;">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">细胞检测结果</a></li>
        <li><a href="{:url('PatientCell/index', array('id'=>$userInfo.id))}">返回</a></li>
    </ul>
    <br/>
    <form class="layui-form" action="{:url('patient/add')}">
        <header style="width: 90%;overflow: hidden;margin: 0 auto;">
            <span style="float: left;font-weight: bold;">编号：{$userInfo.no}</span>
            <span style="float: right;">介绍人：{$userInfo.parent_no}</span>
        </header>
        <div style="width: 90%;overflow: hidden;margin: 10px auto;">
            日期：{$userInfo.create_time|date='Y-m-d H:i:s',###}
        </div>
        <div style="width: 90%;text-align: center;line-height: 50px;font-size: 20px;margin: 5px auto;font-weight: bold;">和盛堂食疗体验服务表</div>
        <table border="1px solid #000000" cellspacing="" cellpadding="" style="width: 90%;margin: 0 auto;">
            <tr>
                <th colspan="8" style="border-right: 0;text-align: left;font-weight: bold;background: #aae0fa;text-indent: 10px;">基本信息</th>
                <!--<td colspan="7"></td>-->
            </tr>
            <tr>
                <th>姓名</th>
                <td>{$userInfo.name}</td>
                <th>年龄</th>
                <td>{$userInfo.age}</td>
                <th>性别</th>
                <td><if condition="$userInfo.sex eq 1">
                    男
                    <else/>
                    女
                </if></td>
                <th>民族</th>
                <td><if condition="$userInfo.nation eq 1">
                    汉
                    <else/>
                    其他
                </if></td>
            </tr>
            <tr>
                <th>手机</th>
                <td colspan="3">{$userInfo.phone}</td>
                <th>住址</th>
                <td colspan="3">{$userInfo.address}</td>
            </tr>
            <tr>
                <th style="height: 120px;">病史</th>
                <td colspan="7" style="height: 120px;">{$userInfo.medical_history}</td>
            </tr>
            <tr>
                <th style="height: 120px;">过敏史</th>
                <td colspan="7" style="height: 120px;">{$userInfo.allergy_history}</td>
            </tr>

            <tr>
                <th colspan="8" class="cell_check" style="background: #fce5c2;text-align: left;text-indent: 10px;font-weight: bold;cursor: pointer;">细胞检测仪(检查项目)</th>
                <!--<th colspan="4" class="diabetes" style="border-right: 0;background: #ffffff;text-align: left;text-indent: 10px;font-weight: bold;cursor: pointer;">糖尿病(检查项目)</th>-->
            </tr>
            <tr>
                <td colspan="8" style="padding: 0;" class="project">
                    <table id="cell_check">
                        <tr>
                            <th colspan="">血液粘稠度</th>
                            <td colspan="">
                                <input type="radio" name="cell[blood_viscous]" id="blood3" <eq name="$cellInfo.blood_viscous" value="3">checked</eq> value="3" lay-ignore />
                                3图
                                <input type="radio" name="cell[blood_viscous]" id="blood4" <eq name="$cellInfo.blood_viscous" value="4">checked</eq> value="4" lay-ignore />

                                4图
                                <input type="hidden" name="cell[user_id]" value="{$userInfo.id}" lay-ignore />
                            </td>
                            <th colspan="">脂肪肝</th>
                            <td colspan="">
                                <input type="radio" name="cell[fat_liver]" id="fat_liver1" <eq name="$cellInfo.fat_liver" value="轻">checked</eq> value="轻" lay-ignore />
                                轻
                                <input type="radio" name="cell[fat_liver]" id="fat_liver2" <eq name="$cellInfo.fat_liver" value="中">checked</eq> value="中" lay-ignore />
                                中
                                <input type="radio" name="cell[fat_liver]" id="fat_liver3" <eq name="$cellInfo.fat_liver" value="重">checked</eq> value="重" lay-ignore />
                                重
                            </td>
                        </tr>
                        <tr>
                            <th colspan="">脂质斑块</th>
                            <td colspan="">
                                <input type="number" name="cell[zhizhibankuai]" min="0" value="{$cellInfo.zhizhibankuai}"/>
                                块
                            </td>
                            <th colspan="">胆固醇结晶</th>
                            <td colspan="">
                                <input type="number" name="cell[danguchunjiejing]" min="0" value="{$cellInfo.danguchunjiejing}"/>
                                个
                            </td>
                        </tr>
                        <tr>
                            <th colspan="">血栓带</th>
                            <td colspan="">
                                <input type="number" name="cell[xueshuandai]" min="0" value="{$cellInfo.xueshuandai}"/>
                                条
                            </td>
                            <th colspan="">肠道毒素</th>
                            <td colspan="">
                                <input type="number" name="cell[changdaodusu]" min="0" value="{$cellInfo.changdaodusu}"/>
                                个
                            </td>
                        </tr>
                        <tr>
                            <th colspan="">肾功能</th>
                            <td colspan=""><textarea name="cell[shengongneng]" rows="" cols="">{$cellInfo.shengongneng}</textarea></td>
                            <th colspan="">血糖代谢</th>
                            <td colspan=""><textarea name="cell[xuetangdaixie]" rows="" cols="">{$cellInfo.xuetangdaixie}</textarea></td>
                        </tr>
                        <tr>
                            <th colspan="">炎症</th>
                            <td colspan=""><textarea name="cell[yanzheng]" rows="" cols="">{$cellInfo.yanzheng}</textarea></td>
                            <th colspan="">贫血</th>
                            <td colspan=""><textarea name="cell[pinxue]" rows="" cols="">{$cellInfo.pinxue}</textarea></td>
                        </tr>
                        <tr>
                            <th colspan="">脾胃失调</th>
                            <td colspan=""><textarea name="cell[piweishitiao]" rows="" cols="">{$cellInfo.piweishitiao}</textarea></td>
                            <th colspan="">胆囊功能改变</th>
                            <td colspan=""><textarea name="cell[dannanggongneng]" rows="" cols="">{$cellInfo.dannanggongneng}</textarea></td>
                        </tr>
                        <tr>
                            <th colspan="">肺区</th>
                            <td colspan=""><textarea name="cell[feiqu]" rows="" cols="">{$cellInfo.feiqu}</textarea></td>
                            <th colspan="">气管</th>
                            <td colspan=""><textarea name="cell[qiguan]" rows="" cols="">{$cellInfo.qiguan}</textarea></td>
                        </tr>
                        <tr>
                            <th colspan="">神经性头痛</th>
                            <td colspan=""><textarea name="cell[shenjingxingtoutong]" rows="" cols="">{$cellInfo.shenjingxingtoutong}</textarea></td>
                            <th colspan="">胸闷</th>
                            <td colspan=""><textarea name="cell[xiongmen]" rows="" cols="">{$cellInfo.xiongmen}</textarea></td>
                        </tr>
                        <tr>
                            <th colspan="">心脑供血不足</th>
                            <td colspan=""><textarea name="cell[xinnaogongxuebuzu]" rows="" cols="">{$cellInfo.xinnaogongxuebuzu}</textarea></td>
                            <th colspan="">缺钙</th>
                            <td colspan=""><textarea name="cell[quegai]" rows="" cols="">{$cellInfo.quegai}</textarea></td>
                        </tr>
                        <tr>
                            <th colspan="">内分泌失调</th>
                            <td colspan=""><textarea name="cell[neifenmishitiao]" rows="" cols="">{$cellInfo.neifenmishitiao}</textarea></td>
                            <th colspan="">痔疮</th>
                            <td colspan=""><textarea name="cell[zhichuang]" rows="" cols="">{$cellInfo.zhichuang}</textarea></td>
                        </tr>
                        <tr>
                            <th colspan="">妇科</th>
                            <td colspan=""><textarea name="cell[fuke]" rows="" cols="">{$cellInfo.fuke}</textarea></td>
                            <th colspan="">前列腺</th>
                            <td colspan=""><textarea name="cell[qianliexian]" rows="" cols="">{$cellInfo.qianliexian}</textarea></td>
                        </tr>
                        <tr>
                            <th colspan="">自由基</th>
                            <td colspan=""><textarea name="cell[ziyouji]" rows="" cols="">{$cellInfo.ziyouji}</textarea></td>
                            <th colspan="">肌腱炎腰肌劳损</th>
                            <td colspan=""><textarea name="cell[jijianyan]" rows="" cols="">{$cellInfo.jijianyan}</textarea></td>
                        </tr>
                        <tr>
                            <th colspan="">药毒</th>
                            <td colspan=""><textarea name="cell[yaodu]" rows="" cols="">{$cellInfo.yaodu}</textarea></td>
                            <th colspan="">风湿</th>
                            <td colspan=""><textarea name="cell[fengshi]" rows="" cols="">{$cellInfo.fengshi}</textarea></td>
                        </tr>
                        <tr>
                            <th colspan="">头部堵塞</th>
                            <td colspan=""><textarea name="cell[toubuduse]" rows="" cols="">{$cellInfo.toubuduse}</textarea></td>
                            <th colspan="">疲劳</th>
                            <td colspan=""><textarea name="cell[pilao]" rows="" cols="">{$cellInfo.pilao}</textarea></td>
                        </tr>
                        <tr>
                            <th>其他</th>
                            <td colspan="7"><textarea name="cell[qita]" rows="" cols="">{$cellInfo.qita}</textarea></td>
                        </tr>
                        <tr>
                            <th style="height: 120px;">食疗配方</th>
                            <td colspan="7"><textarea style="height: 110px;" name="cell[food_plan]" rows="" cols="">{$cellInfo.food_plan}</textarea></td>
                        </tr>
                    </table>
                    <!--<table id="diabetes" style="display: none;">-->
                        <!--<tr>-->
                            <!--<th rowspan="2">病情登记</th>-->
                            <!--<th>空腹血糖</th>-->
                            <!--<th>餐后血糖</th>-->
                            <!--<th>用药情况</th>-->
                            <!--<th>胰岛素用量</th>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[kongfuxuetang]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[canhouxuetang]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[yongyaoqingkuang]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;border-right: 1px solid #000000;"><textarea name="diabetes[yidaosuyongliang]" rows="" cols=""></textarea></td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<th>初诊方式：</th>-->
                            <!--<td colspan="6">-->
                                <!--<input type="radio" name="diabetes[firstdiagnose_style]" value="常规体检" lay-ignore />-->
                                <!--常规体检-->
                                <!--<input type="radio" name="diabetes[firstdiagnose_style]" value="偶尔查血糖" lay-ignore />-->
                                <!--偶尔查血糖-->
                                <!--<input type="radio" name="diabetes[firstdiagnose_style]" value="因某项并发症查出" lay-ignore />-->
                                <!--因某项并发症查出-->
                                <!--<input type="radio" name="diabetes[firstdiagnose_style]" value="遗传" lay-ignore />-->
                                <!--遗传-->
                            <!--</td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<th colspan="7" style="text-align: left;text-indent: 10px;font-weight: bold;border-right: 0;">糖尿病并发症：</th>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<th colspan="7" style="text-align: left;text-indent: 10px;font-weight: bold;border-right: 0;">①典型症状：</th>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td colspan="7">-->
                                <!--<input type="checkbox" name="diabetes[dianxingzhengzhuang]" value="出汗异常 多汗" lay-ignore />-->
                                <!--出汗异常 多汗-->
                                <!--<input type="checkbox" name="diabetes[dianxingzhengzhuang]" value="便秘、腹泻" lay-ignore />-->
                                <!--便秘、腹泻-->
                                <!--<input type="checkbox" name="diabetes[dianxingzhengzhuang]" value="失眠" lay-ignore />-->
                                <!--失眠-->
                                <!--<input type="checkbox" name="diabetes[dianxingzhengzhuang]" value="头痛" lay-ignore />-->
                                <!--头痛-->
                                <!--<input type="checkbox" name="diabetes[dianxingzhengzhuang]" value="记忆力下降" lay-ignore />-->
                                <!--记忆力下降-->
                                <!--<input type="checkbox" name="diabetes[dianxingzhengzhuang]" value="乏力" lay-ignore />-->
                                <!--乏力-->
                                <!--<input type="checkbox" name="diabetes[dianxingzhengzhuang]" value="免疫力低" lay-ignore />-->
                                <!--免疫力低-->
                            <!--</td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<th colspan="7" style="text-align: left;text-indent: 10px;font-weight: bold;border-right: 0;">②眼病病变：</th>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td colspan="7">-->
                                <!--<input type="checkbox" name="diabetes[yanbingbingbian]" value="青光眼" lay-ignore />-->
                                <!--青光眼-->
                                <!--<input type="checkbox" name="diabetes[yanbingbingbian]" value="白内障" lay-ignore />-->
                                <!--白内障-->
                                <!--<input type="checkbox" name="diabetes[yanbingbingbian]" value="球结膜微血管瘤" lay-ignore />-->
                                <!--球结膜微血管瘤-->
                                <!--<input type="checkbox" name="diabetes[yanbingbingbian]" value="视物不清" lay-ignore />-->
                                <!--视物不清-->
                                <!--<input type="checkbox" name="diabetes[yanbingbingbian]" value="飞蚊症" lay-ignore />-->
                                <!--飞蚊症-->
                                <!--<input type="checkbox" name="diabetes[yanbingbingbian]" value="视力减退" lay-ignore />-->
                                <!--视力减退-->
                                <!--<input type="checkbox" name="diabetes[yanbingbingbian]" value="视网膜黄斑病变" lay-ignore />-->
                                <!--视网膜黄斑病变-->
                                <!--<input type="checkbox" name="diabetes[yanbingbingbian]" value="眼外肌麻痹" lay-ignore />-->
                                <!--眼外肌麻痹-->
                            <!--</td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<th colspan="7" style="text-align: left;text-indent: 10px;font-weight: bold;border-right: 0;">③神经性病变：</th>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td colspan="7">-->
                                <!--<input type="checkbox" name="diabetes[shenjingxingbingbian]" value="手脚麻木针刺感" lay-ignore />-->
                                <!--手脚麻木针刺感-->
                                <!--<input type="checkbox" name="diabetes[shenjingxingbingbian]" value="皮肤瘙痒" lay-ignore />-->
                                <!--皮肤瘙痒-->
                                <!--<input type="checkbox" name="diabetes[shenjingxingbingbian]" value="手脚发热" lay-ignore />-->
                                <!--手脚发热-->
                                <!--<input type="checkbox" name="diabetes[shenjingxingbingbian]" value="中部坏疽" lay-ignore />-->
                                <!--中部坏疽-->
                                <!--<input type="checkbox" name="diabetes[shenjingxingbingbian]" value="皮肤深色斑块斑" lay-ignore />-->
                                <!--皮肤深色斑块斑-->
                                <!--<input type="checkbox" name="diabetes[shenjingxingbingbian]" value="溃疡不愈合" lay-ignore />-->
                                <!--溃疡不愈合-->
                            <!--</td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<th colspan="7" style="text-align: left;text-indent: 10px;font-weight: bold;border-right: 0;">④心脑血管病变：</th>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td colspan="7">-->
                                <!--<input type="checkbox" name="diabetes[xinnaoxueguanbingbian]" value="脑血栓" lay-ignore />-->
                                <!--脑血栓-->
                                <!--<input type="checkbox" name="diabetes[xinnaoxueguanbingbian]" value="偏瘫" lay-ignore />-->
                                <!--偏瘫-->
                                <!--<input type="checkbox" name="diabetes[xinnaoxueguanbingbian]" value="心绞痛" lay-ignore />-->
                                <!--心绞痛-->
                                <!--<input type="checkbox" name="diabetes[xinnaoxueguanbingbian]" value="心慌" lay-ignore />-->
                                <!--心慌-->
                                <!--<input type="checkbox" name="diabetes[xinnaoxueguanbingbian]" value="气短" lay-ignore />-->
                                <!--气短-->
                                <!--<input type="checkbox" name="diabetes[xinnaoxueguanbingbian]" value="心率不齐" lay-ignore />-->
                                <!--心率不齐-->
                                <!--<input type="checkbox" name="diabetes[xinnaoxueguanbingbian]" value="房颤" lay-ignore />-->
                                <!--房颤-->
                                <!--<input type="checkbox" name="diabetes[xinnaoxueguanbingbian]" value="早搏" lay-ignore />-->
                                <!--早搏-->
                                <!--<input type="checkbox" name="diabetes[xinnaoxueguanbingbian]" value="胸痛" lay-ignore />-->
                                <!--胸痛-->
                                <!--<input type="checkbox" name="diabetes[xinnaoxueguanbingbian]" value="高血压" lay-ignore />-->
                                <!--高血压-->
                                <!--<input type="checkbox" name="diabetes[xinnaoxueguanbingbian]" value="高血脂" lay-ignore />-->
                                <!--高血脂-->
                            <!--</td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<th colspan="7" style="text-align: left;text-indent: 10px;font-weight: bold;border-right: 0;">⑤肾病病变：</th>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td colspan="7">-->
                                <!--<input type="checkbox" name="diabetes[shenbingbingbian]" id="" value="起夜多次" lay-ignore />-->
                                <!--起夜多次-->
                                <!--<input type="checkbox" name="diabetes[shenbingbingbian]" id="" value="盗汗" lay-ignore />-->
                                <!--盗汗-->
                                <!--<input type="checkbox" name="diabetes[shenbingbingbian]" id="" value="泡沫尿" lay-ignore />-->
                                <!--泡沫尿-->
                                <!--<input type="checkbox" name="diabetes[shenbingbingbian]" id="" value="尿毒症" lay-ignore />-->
                                <!--尿毒症-->
                                <!--<input type="checkbox" name="diabetes[shenbingbingbian]" id="" value="尿糖" lay-ignore />-->
                                <!--尿糖-->
                                <!--<input type="checkbox" name="diabetes[shenbingbingbian]" id="" value="尿蛋白" lay-ignore />-->
                                <!--尿蛋白-->
                                <!--<input type="checkbox" name="diabetes[shenbingbingbian]" id="" value="性功能减退" lay-ignore />-->
                                <!--性功能减退-->
                            <!--</td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<th colspan="7" style="text-align: center;font-weight: bold;border-right: 0;">服用化唐方情况</th>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<th rowspan="2">日期</th>-->
                            <!--<th rowspan="2">餐前血糖</th>-->
                            <!--<th rowspan="2">餐后血糖</th>-->
                            <!--<th colspan="2">产品服用量</th>-->
                            <!--<th rowspan="2">药物服用量</th>-->
                            <!--<th rowspan="2" style="border-right: 0;">胰岛素用量</th>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td>化唐方</td>-->
                            <!--<td>消郁方</td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[riqi][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[canqianxuetang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[canhouxuetang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[huatangfangyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[xiaoyufangyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[yaowufuyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[yidaosuyongliang][]" rows="" cols=""></textarea></td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[riqi][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[canqianxuetang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[canhouxuetang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[huatangfangyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[xiaoyufangyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[yaowufuyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[yidaosuyongliang][]" rows="" cols=""></textarea></td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[riqi][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[canqianxuetang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[canhouxuetang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[huatangfangyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[xiaoyufangyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[yaowufuyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[yidaosuyongliang][]" rows="" cols=""></textarea></td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[riqi][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[canqianxuetang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[canhouxuetang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[huatangfangyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[xiaoyufangyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[yaowufuyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[yidaosuyongliang][]" rows="" cols=""></textarea></td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[riqi][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[canqianxuetang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[canhouxuetang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[huatangfangyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[xiaoyufangyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[yaowufuyongliang][]" rows="" cols=""></textarea></td>-->
                            <!--<td style="height: 40px;"><textarea name="diabetes[yidaosuyongliang][]" rows="" cols=""></textarea></td>-->
                        <!--</tr>-->
                    <!--</table>-->
                </td>
            </tr>
            <tr>
                <th>检测医师</th>
                <td colspan="3"><input type="text" name="cell[doctor]" />{$cellInfo.doctor}</td>
                <th>记录人员</th>
                <td colspan="3"><input type="text" name="cell[record]" />{$cellInfo.record}</td>
            </tr>
            <tr>
                <th style="height: 200px;">现场照片</th>
                <td colspan="7">
                    <foreach name="imgs" item="vo">
                        <img src="/uploads/{$vo.url}" style="height:200px;">
                    </foreach>

                    <!--<div class="layui-upload">
                        <div class="layui-upload-list">
                            <div class="applypictures" lay-verify="applypictures" style="float: left;"></div>
                            <button type="button" class="layui-btn" id="test1" style="background: #ffffff;border: 0;cursor: pointer;color: #000000;">
                                &lt;!&ndash;<img src="img/upload.png"/>&ndash;&gt;
                                选择文件
                            </button>
                        </div>
                    </div>-->
                </td>
            </tr>
        </table>
        <!--<div>
            <div id="submit" lay-submit="" lay-filter="submit" style="text-align: center">提交</div>
        </div>-->
    </form>
    <div class="bgimg" style="width: 100%;height: 100%;z-index: 100;position: fixed;top: 0;display: none;overflow: scroll;"><img style="width: 90%;display: block;margin:auto;" src="" alt="" /></div>
</div>
<script src="__HST__/js/jquery-1.7.1.min.js"></script>
<script src="__HST__/layui/layui.js"></script>
<script>
    layui.use('form', function(){
        var form = layui.form;
        //监听提交
        form.on('submit(submit)', function(data){
            layer.msg(JSON.stringify(data.field));
            $.ajax({
                url:"{:url('patient/addcell')}",
                data: data.field,
                success:function(obj){
                    layer.msg(obg.msg);
                }
            })
            console.log(JSON.stringify(data.field))
            return false;
        });
    });
    //上传图片
    layui.use('upload', function(){
        var upload = layui.upload;

        //执行实例
        var uploadInst = upload.render({
            elem: '#test1' //绑定元素
            ,url: '/admin/patient/updateImg' //上传接口
            ,before: function(obj){
                //预读本地文件示例，不支持ie8
                obj.preview(function(index, file, result){
                    $(".applypictures").append("<img class='apply_image' src='layui-upload-img'/>");
                    $(".layui-upload-list .apply_image").last().attr('src', result);
                    $('.apply_image').dblclick(function(){
                        //alert($(this).attr("src"))
                        $('.bgimg img').attr('src',$(this).attr("src"));
                        $('.bgimg').show();
                        $('.bgimg img').click(function(){
                            $('.bgimg').hide();
                        })
                    })
                });
            }
            ,done: function(res){
                //上传完毕回调
                var html =" <input type='hidden' name='headImg[]' value='"+res.msg+"'>";
                $('#test1').append(html);
            }
            ,error: function(){
                //请求异常回调

            }
        });
    });

    $('.cell_check').click(function(){
        $('.project table').hide();
        $('#cell_check').show();
        $(this).css('background','#fce5c2').siblings().css('background','#ffffff');
    })
    $('.diabetes').click(function(){
        $('.project table').hide();
        $('#diabetes').show();
        $(this).css('background','#fce5c2').siblings().css('background','#ffffff');
    })



</script>
</body>
</html>